home *** CD-ROM | disk | FTP | other *** search
- property pPiste0, pPiste1, pTH1, pTV1, pPiste2, pTH2, pTV2, pMemb0, pMemb1, pMemb2, pAnim0, pAnim1
-
- on mouseEnter me
- global gCast08
- set pPiste0 to the currentSpriteNum
- if pPiste0 <> VOID then
- set pPiste1 to pPiste0 + 1
- set pTH1 to the locH of sprite pPiste1
- set pTV1 to the locV of sprite pPiste1
- set pPiste2 to pPiste0 + 2
- set pTH2 to the locH of sprite pPiste2
- set pTV2 to the locV of sprite pPiste2
- case pPiste0 of
- 48:
- set pMemb0 to "caseJaune8b0"
- set pMemb1 to "caseJaune8b1"
- set pMemb2 to "caseJaune8b2"
- set pAnim0 to "AnimJaune0"
- set pAnim1 to "AnimJaune1"
- 52:
- set pMemb0 to "caseRose8b0"
- set pMemb1 to "caseRose8b1"
- set pMemb2 to "caseRose8b2"
- set pAnim0 to "AnimRose0"
- set pAnim1 to "AnimRose1"
- 56:
- set pMemb0 to "caseCiel0"
- set pMemb1 to "caseCiel1"
- set pMemb2 to "caseCiel2"
- set pAnim0 to "AnimCiel0"
- set pAnim1 to "AnimCiel1"
- otherwise:
- set pMemb0 to "caseBleu0"
- set pMemb1 to "caseBleu1"
- set pMemb2 to "caseBleu2"
- set pAnim0 to "AnimBleu0"
- set pAnim1 to "AnimBleu1"
- end case
- set the member of sprite pPiste0 to pMemb1
- set the member of sprite pPiste1 to pAnim1
- set the loc of sprite pPiste1 to point(pTH1 - 1, pTV1 - 1)
- set the loc of sprite pPiste2 to point(pTH2 - 1, pTV2 - 1)
- cursor(280)
- end if
- end
-
- on mouseDown me
- if pPiste0 <> VOID then
- set the member of sprite pPiste0 to pMemb2
- set the loc of sprite pPiste1 to point(pTH1, pTV1)
- set the loc of sprite pPiste2 to point(pTH2, pTV2)
- cursor(290)
- case the name of member the memberNum of sprite pPiste2 of
- "texteBleu1":
- cursor(-1)
- go("case1")
- "texteBleu2":
- cursor(-1)
- go("Case2")
- "texteBleu3":
- cursor(-1)
- go("Case3")
- "texteBleu4":
- cursor(-1)
- go("Case4")
- "texteBleu5":
- cursor(-1)
- go("Case5")
- "texteBleu6":
- cursor(-1)
- go("Case6")
- "texteBleu7":
- cursor(-1)
- go("case7")
- "texteJaune":
- cursor(-1)
- go("Jaune")
- "texteRose":
- cursor(-1)
- go("Rose")
- "texteCiel":
- cursor(-1)
- go("Bleu")
- end case
- end if
- end
-
- on mouseUp me
- if pPiste0 <> VOID then
- set the member of sprite pPiste0 to pMemb1
- set the loc of sprite pPiste1 to point(pTH1 - 1, pTV1 - 1)
- set the loc of sprite pPiste2 to point(pTH2 - 1, pTV2 - 1)
- cursor(280)
- end if
- end
-
- on mouseLeave me
- if pPiste0 <> VOID then
- set the member of sprite pPiste0 to pMemb0
- set the member of sprite pPiste1 to pAnim0
- set the loc of sprite pPiste1 to point(pTH1, pTV1)
- set the loc of sprite pPiste2 to point(pTH2, pTV2)
- cursor(-1)
- end if
- end
-